package Practice;

public class FindFactory_02 {
    public int findFactor(int n){
        if(n==1)return 1;
        return n*findFactor(n-1);
    }
    public static void main(String[] args) {
        FindFactory_02 fF=new FindFactory_02();
        System.out.println(fF.findFactor(5));
        System.out.println(fF.findFactor(10));
    }
}
